package com.tm.mapper;

import com.tm.model.SpOrder;
import com.tm.model.SpOrderCriteria;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

public interface SpOrderMapper {
    int countByExample(SpOrderCriteria example);

    int deleteByExample(SpOrderCriteria example);

    int deleteByPrimaryKey(Integer id);

    int insert(SpOrder record);

    int insertSelective(SpOrder record);

    List<SpOrder> selectByExample(SpOrderCriteria example);

    SpOrder selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") SpOrder record, @Param("example") SpOrderCriteria example);

    int updateByExample(@Param("record") SpOrder record, @Param("example") SpOrderCriteria example);

    int updateByPrimaryKeySelective(SpOrder record);

    int updateByPrimaryKey(SpOrder record);

	SpOrder getSpOrderByOrderId(String orderId);

	int batchInsertOrderSku(List<Map<String, Object>> list);

	int insertOrderSku(Map<String, Object> param);

	SpOrder getOrderByOrderId(String orderId);

	List<Map<String, Object>> getOrderListByMemberIdWithPage(Map<String, Object> param);

	int addWithdrawalsApply(Map<String, Object> param);

	List<Map<String, Object>> getOrderCancelReason();

	List<Map<String, Object>> getIncomeListByMemberIdWithPage(Map<String, Object> param);

	Map<String, Object> getSaleCount(Integer memberId);

	List<Map<String, Object>> getSaleListByMemberIdWithPage(Map<String, Object> param);

	List<Map<String, Object>> getSaleOrderListByMemberIdWithPage(Map<String, Object> param);

	int updateOrderTakeState();
}